package service;



import org.apache.ibatis.session.SqlSession;

import pojo.User;
import util.MybatisSessionFactory;
import dao.UserDao;

public class UserService {
	SqlSession Session = MybatisSessionFactory.getSqlSession();
	UserDao dao = Session.getMapper(UserDao.class);
	public User queryone(String account,String password) {
		Session.commit();
		return dao.queryone(account,password);
		
	}
}
